﻿<%@ Page Language="C#" MasterPageFile="~/User/MasterPage.master" AutoEventWireup="true" CodeFile="Giohang.aspx.cs" Inherits="User_Giohang" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
    <div id="cont">
        <div class="margin">
            <div class="central-column">
                <div class="mainbox-container">
                    <div class="mainbox-body">
                        <div class="border">
                            <h1 class="fon">Giỏ hàng</h1>
                            <div>
                                <div class="mainbox-cart-body">
                                <div id="cart_items">
                                    <asp:Repeater ID="rep_Cart" runat="server" OnItemDataBound="rep_Cart_ItemDataBound">
                                        <HeaderTemplate> <table id="cart_list">
                                        <thead>
                                                <tr>
                                                    <th>Deal</th>
                                                    <th>Số lượng</th>
                                                    <th>Đơn giá</th>
                                                    <th>Thành tiền</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                
                                                <tr>
                                                    <td>
                                                        <asp:HyperLink ID="hp_tensp" runat="server" CssClass="product-title"></asp:HyperLink>
                                                        <asp:HiddenField ID="hf_id" Value='<% #Eval("id")%>' runat="server" />
                                                    </td>
                                                    <td class="quantity">
                                                            <asp:TextBox ID="txt_soluong" runat="server" Width="30" CssClass="cm-amount" Columns="3"></asp:TextBox>
                                                    </td>
                                                    <td align="right">
                                                        <span class="sub-price">
                                                            <asp:Literal ID="lit_giaban" runat="server"></asp:Literal></span>
                                                    </td>
                                                    <td align="right">
                                                        <span class="price">
                                                            <asp:Literal ID="lit_thanhtien" runat="server"></asp:Literal></span>
                                                    </td>
                                                </tr>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                </tbody>
                                               </table>
                                               </FooterTemplate>
                                     </asp:Repeater>
                                     </div>
                                </div>
                                <div class="total">Tổng tiền:
                                    <asp:Literal ID="lit_tongtien" runat="server"></asp:Literal>
                                </div>
                                <div class="cart-buttons clear">
                                    <div class="float-left">
                                        <asp:LinkButton ID="lbt_xoagiohang" runat="server" CssClass="lbton" OnClick="lbt_xoagiohang_Click" >Xóa giỏ hàng</asp:LinkButton>
                                    </div>
                                    <div style="float:right">
                                        <asp:Button ID="bt_capnhat" runat="server" Text="Cập nhật" CssClass="button" Font-Bold="true" Width="100px" Height="30px" OnClick="bt_capnhat_Click" />  
                                        <asp:HyperLink ID="hp_link" runat="server"><asp:Button ID="Button1" runat="server" Text="Thanh toán" CssClass="button" Font-Bold="true" Width="100px" Height="30px"/></asp:HyperLink>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</asp:Content>

